Search
Other Articles Anywhere questions
Forum

Using {if} in {foreach}-loop

Ton van Loon's Avatar Ton van Loon
Can I use an {if}-statement in a {foreach}-loop on custom sub-fields?

If so, what is the correct syntax? Can anyone give me a code example?

The syntax I am using doesn't work:
{article}
  {foreach data="uitvoeringen"}

    <p>[row:datumuitvoering]</p>

    {if row:datumuitvoering="<date('now')"} 
      <p>Date has past already</p>
    {/if}

  {/foreach}

{/article}
Peter van Westen's Avatar Peter van Westen ADMIN
No, that is not currently possible.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription